# $Id: PKGBUILD 143969 2011-11-30 23:13:25Z giovanni $
# Maintainer: dorphell <dorphell@archlinux.org>
# Contributor: Aurelien Foret <orelien@chez.com>

pkgname=speedtouch
pkgver=1.3.1
pkgrel=4
pkgdesc="Driver for the ADSL Speed Touch USB modem"
arch=('i686' 'x86_64')
url="http://speedtouch.sourceforge.net/"
license=('GPL')
depends=('bash')
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2" 
	'speedtouch-1.3.1-gcc4.patch')
md5sums=('0848a120ae0eeab6c8ab378e11dc4fa2' 
	 '4191035925db745944c75e26937c42a3')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  patch -Np1 -i ${srcdir}/speedtouch-1.3.1-gcc4.patch
  ./configure --prefix=/usr \
              --sysconfdir=/etc \
              --mandir=/usr/share/man
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make prefix=${pkgdir}/usr sysconfdir=${pkgdir}/etc mandir=${pkgdir}/usr/share/man install
}
